#include "bomb2.h"
#include "config.h"
bomb2::bomb2()
{
    for(int i=1;i<=BOMBMAX;i++){
        QString str=QString(ENEMY2_BOMB_PATH).arg(i);
        m_pixArr2.push_back(str);
    }
    m_x2=0;
    m_y2=0;
    m_Free2=true;
    m_index2=0;
    m_Recorder2=0;
}

void bomb2::updateInfo2()
{
    if(m_Free2)
    {
        return;
    }
    m_Recorder2++;
    if(m_Recorder2<BOMB_INTERVAL)
    {
        return;
    }
    m_Recorder2=0;
    m_index2++;
    if(m_index2>BOMBMAX-1)
    {
        m_index2=0;
        m_Free2=true;
    }
}
